import fire import os from glob import glob #output a finally static picture of network import networkx as nx import pylab from pprint import pprint import matplotlib.pyplot as plt import matplotlib import matplotlib as mpl
#!python2 import fire import os from glob import glob #output a finally static picture of network import networkx as nx import pylab from pprint import pprint import matplotlib.pyplot as plt import matplotlib import matplotlib as mpl
#read data fh=open("data.txt") text = fh.readlines()[1:]
ax2 = ax1.twiny() # this is the important function ax2.set_xlabel('frame order from 1') ax2.set_xlim(ax1.get_xlim()) print"ax1 lim",ax1.get_xlim() print"ax1 ticks",ax1.get_xticks() pprint(x1s) ax2.set_xticks( ax1.get_xticks()) ax2.set_xticklabels(x1s)